package com.augmentum.oes.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertyUtil {

    public static Properties p = null;

    static {
        InputStream in = PropertyUtil.class.getClassLoader().getResourceAsStream("jdbc.properties");
        p = new Properties();
        try {
            p.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }

    public static String getProperties (String key) {
        return p.getProperty(key);
    }

    public static String getStaticPath () {
        return p.getProperty("static_path");
    }
}
